<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
$criteria = new CDbCriteria;
$criteria->select = "small_content";
$criteria->condition = "flag=1";

$ss = Slider::model()->findAll($criteria);


if (!empty($ss)) {
    foreach ($ss as $o) {
        echo $o->title.'<br/> noi dung </br/>';
        echo $o->small_content.'<br/>';
    }
}